<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>pybindgen.cppattribute.PySetter</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pybindgen-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="pybindgen-module.html">Package&nbsp;pybindgen</a> ::
        <a href="pybindgen.cppattribute-module.html">Module&nbsp;cppattribute</a> ::
        Class&nbsp;PySetter
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="pybindgen.cppattribute.PySetter-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class PySetter</h1><p class="nomargin-top"><span class="codelink"><a href="pybindgen.cppattribute-pysrc.html#PySetter">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_pybindge_19" name="uml_class_diagram_for_pybindge_19">
<area shape="rect" href="pybindgen.cppattribute.PySetter-class.html#NO_GIL_LOCKING" title="pybindgen.cppattribute.PySetter.NO_GIL_LOCKING" alt="" coords="121,140,279,159"/>
<area shape="rect" href="pybindgen.cppattribute.PySetter-class.html#generate" title="Generate the code of the setter to the given code sink" alt="" coords="121,161,279,180"/>
<area shape="rect" href="pybindgen.cppattribute.PySetter-class.html#generate_python_call" title="(not actually called)" alt="" coords="121,180,279,199"/>
<area shape="rect" href="pybindgen.cppattribute.PySetter-class.html" title="generates a setter, for use in a PyGetSetDef table" alt="" coords="120,123,280,200"/>
<area shape="rect" href="pybindgen.cppattribute.CppStaticAttributeSetter-class.html" title="A setter for a C++ class static attribute." alt="" coords="16,229,171,256"/>
<area shape="rect" href="pybindgen.cppattribute.CppInstanceAttributeSetter-class.html" title="A setter for a C++ instance attribute." alt="" coords="221,229,392,256"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#__init__" title="Base constructor" alt="" coords="29,36,371,55"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#set_error_return" title="pybindgen.typehandlers.base.ReverseWrapperBase.set_error_return" alt="" coords="29,55,371,73"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#reset_code_generation_state" title="pybindgen.typehandlers.base.ReverseWrapperBase.reset_code_generation_state" alt="" coords="29,73,371,92"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html" title="Generic base for all reverse wrapper generators." alt="" coords="28,11,372,93"/>
</map>
  <img src="uml_class_diagram_for_pybindge_19.gif" alt='' usemap="#uml_class_diagram_for_pybindge_19" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<p>generates a setter, for use in a PyGetSetDef table</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Instance Methods</span></td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pybindgen.cppattribute.PySetter-class.html#generate" class="summary-sig-name">generate</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">code_sink</span>)</span><br />
      Generate the code of the setter to the given code sink</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.cppattribute-pysrc.html#PySetter.generate">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pybindgen.cppattribute.PySetter-class.html#generate_python_call" class="summary-sig-name">generate_python_call</a>(<span class="summary-sig-arg">self</span>)</span><br />
      (not actually called)</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.cppattribute-pysrc.html#PySetter.generate_python_call">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html">typehandlers.base.ReverseWrapperBase</a></code></b>:
      <code><a href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#__init__">__init__</a></code>,
      <code><a href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#reset_code_generation_state">reset_code_generation_state</a></code>,
      <code><a href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#set_error_return">set_error_return</a></code>
      </p>
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__format__</code>,
      <code>__getattribute__</code>,
      <code>__hash__</code>,
      <code>__new__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__repr__</code>,
      <code>__setattr__</code>,
      <code>__sizeof__</code>,
      <code>__str__</code>,
      <code>__subclasshook__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Class Variables</span></td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="NO_GIL_LOCKING"></a><span class="summary-name">NO_GIL_LOCKING</span> = <code title="True">True</code>
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Properties</span></td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Method Details</span></td>
</tr>
</table>
<a name="generate"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">generate</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">code_sink</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pybindgen.cppattribute-pysrc.html#PySetter.generate">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Generate the code of the setter to the given code sink</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>code_sink</code></strong> - a CodeSink object that will receive the code</li>
        <li><strong class="pname"><code>wrapper_name</code></strong> - C/C++ identifier of the function/method to generate</li>
        <li><strong class="pname"><code>decl_modifiers</code></strong> - list of C/C++ declaration modifiers, e.g. 'static'</li>
    </ul></dd>
    <dt>Overrides:
        <a href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#generate">typehandlers.base.ReverseWrapperBase.generate</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="generate_python_call"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">generate_python_call</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pybindgen.cppattribute-pysrc.html#PySetter.generate_python_call">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>(not actually called)</p>
  <dl class="fields">
    <dt>Overrides:
        <a href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#generate_python_call">typehandlers.base.ReverseWrapperBase.generate_python_call</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pybindgen-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Jul 12 17:23:11 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
